package StudyCode.summary.mycollection;

import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.Set;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class GetSetViewOfKeysFromLinkedHashMap {
	public static void main(String[] args) {
		LinkedHashMap lHashMap = new LinkedHashMap();
		lHashMap.put("1", "One");
		lHashMap.put("2", "Two");
		lHashMap.put("3", "Three");

		Set st = lHashMap.keySet();

		System.out.println("从LinkedHashMap Key创建的 Set 包含 :");
		Iterator itr = st.iterator();
		while (itr.hasNext())
			System.out.println(itr.next());
	}
}
